package Class::Scaffold::Storable_TEST;

# $Id: Storable_TEST.pm 11275 2006-04-26 10:53:05Z gr $

use strict;
use warnings;
use Error::Hierarchy::Test 'throws2_ok';
use Test::More;


our $VERSION = '0.04';


use base 'Class::Scaffold::Test';


use constant PLAN => 1;


sub run {
    my $self = shift;
    $self->SUPER::run(@_);

    my $obj = $self->make_real_object;

    throws2_ok {
        Class::Scaffold::Storable_TEST::x001->new->storage->prepare('foo');
    } 'Error::Hierarchy::Internal::CustomMessage',
       qr/can't find method to get storage object from delegate/,
       'using non-existing storage';

}


package Class::Scaffold::Storable_TEST::x001;
use base 'Class::Scaffold::Storable';


1;


__END__

{% USE p = PodGenerated %}

=head1 NAME

{% p.package %} - large-scale OOP application support

=head1 SYNOPSIS

    {% p.package %}->new;

=head1 DESCRIPTION

=head1 METHODS

=over 4

{% p.write_methods %}

=back

{% p.write_inheritance %}

{% PROCESS standard_pod %}

=cut

